home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: news.sprintlink.net!eskimo!news
- From: mag@eskimo.com (mAg)
- Subject: Re: ???unresolved external???
- X-Nntp-Posting-Host: tia1.eskimo.com
- Message-ID: <DM35r2.64y@eskimo.com>
- Sender: news@eskimo.com (News User Id)
- Organization: *.*
- X-Newsreader: WinVN 0.93.10
- References: <4edmnn$m53@reader2.ix.netcom.com>
- Date: Thu, 1 Feb 1996 07:21:01 GMT
-
- In article <4edmnn$m53@reader2.ix.netcom.com> (Sat, 27 Jan 1996 17:16:54 GMT), mlwillia@ix.netcom.com
- says :
- >
- >Although this question may appear to be easy, I dont think it is. ( At
- >least it is not becuase I haven't tried to link in the appropriate
- >library.)
- >
- >Here's my problem:
- >
- >I'm trying to write a small Windows DLL using some functions in a
- >library I received from a vendor. Apparently this library has only
- >been used for DOS programs and was written back in 1992 sometime.
- >When I try to compile the DLL (using Microsoft Visual C++ v1.52), I
- >keep getting an "unresolved external' for the function in the library.
- >
- >I'm using the exact syntax out of the header file. I can even get a
- >DOS executable to compile using the library. My questions are:
- >
- >1. Is it possilble to create a DOS-only Library?
-
- Yes is it possible to compile a DOS-only LIB file. Remove the main() from your program, and it will
- be just a collection of functions. Compile it to make an OBJ and use the LIB to make the LIB file out
- of the OBJ module.
- >
- >2. Assuming the above IS NOT true, are there certain flags I need to
- >set in order to access this funciton? (I've tried changing the
- >calling convention to PASCAL - no luck.)
- >
-
- To make a Windows DLL, lot of rules need to be followed. Please refer to the Windows SDK manuals for
- detailed information.
-
- >3. Is there a program somewhere that will let me look at how a
- >function is defined in a LIB file?
- >
- There are no special requirements for making LIB files. LIB files are just a collection of OBJs.
-
- hope that helps..
- --
- /* --------------------------------------------------------
- MAG@ESKIMO.COM
- http://www.eskimo.com/~mag/index.html
- ***********************************************************
- To understand recursion one must first understand recursion
- ***********************************************************
- -------------------------------------------------------- */
-
-